<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>查看消息</title>
    <meta name="keywords" content="知果汇"/>
    <meta name="description" content="知果汇"/>
    <link rel="SHORTCUT ICON" href="_IMG_/favicon.ico"/>
    <link rel="stylesheet" type="text/css" href="_CSS_/reset.css">
    <link rel="stylesheet" type="text/css" href="_CSS_/common.css">
    <link rel="stylesheet" type="text/css" href="_CSS_/store_center.css"/>
    <style type="text/css">
        html, body {
            width: 560px;
            min-width: 560px;
        }

        .row {
            width: 520px;
            float: left;
        }

        .details-box {
            padding: 20px;
            float: left;
        }

        .details-box .row .pub-left {
            display: block;
            float: left;
            width: 70px;
            letter-spacing: 1px;
            padding-right: 10px;
            line-height: 40px;
            font-size: 14px;
            color: #333333;
            text-align: right;
        }

        .row .pub-right {
            float: left;
            width: 440px;
        }

        .pub-right p {
            line-height: 40px;
            font-size: 14px;
            color: #333333;
        }

        .row .pub-right img {
            width: 100px;
            height: 100px;
            float: left;
            margin-right: 10px;
            margin-bottom: 10px;
        }
    </style>
</head>
<body>
<div class="details-box">
    <div class="row">
        <label class="pub-left">消息详情:</label>
        <div class="pub-right">
            <p id="content"></p>
        </div>
    </div>

    <div class="row">
        <label class="pub-left">发件人:</label>
        <div class="pub-right">
            <p>知果汇</p>
        </div>
    </div>
    <div class="row">
        <label class="pub-left">发送时间:</label>
        <div class="pub-right">
            <p id="time"></p>
        </div>
    </div>
</div>

</body>
<script src="_JS_/jquery-1.8.3.min.js"></script>
<script src="_JS_/jquery.base64.js"></script>
<script src="_JS_/jquery.cookie.js"></script>
<script src="_JS_/common.js"></script>
<script src="_P_/layer/layer.js"></script>
<script type="text/javascript" src="_JS_/getMyDate.js"></script>
<script type="text/javascript">
    var id = decodeURI(window.location.href.split("#")[1]);
    $.ajax({
        type: "get",
        url: "{:url('api/form/check_mes2')}",
        data: {'id': id},
        dataType: 'jsonp',
        success: function (msg) {
            if (msg.code == 200) {
                $("#content").text(msg.data.content);
                $("#time").text(getMyDate(msg.data.time * 1000));
            }
        }
    })

    //确认
    function confirm(obj) {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
    }

    //取消
    function cancel(obj) {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
    }
</script>
</html>
